@font-face {
  font-family: 'Sukhumvit Bold';
  src: url('../fonts/sukhumvitset-bold-webfont.eot');
  src: url('../fonts/sukhumvitset-bold-webfont.eot?#iefix') format('embedded-opentype'),
       url('../fonts/sukhumvitset-bold-webfont.woff') format('woff'),
       url('../fonts/sukhumvitset-bold-webfont.ttf') format('truetype'),
       url('../fonts/sukhumvitset-bold-webfont.svg#arabicaregular') format('svg');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Sukhumvit Medium';
  src: url('../fonts/sukhumvitset-medium-webfont.eot');
  src: url('../fonts/sukhumvitset-medium-webfont.eot?#iefix') format('embedded-opentype'),
       url('../fonts/sukhumvitset-medium-webfont.woff') format('woff'),
       url('../fonts/sukhumvitset-medium-webfont.ttf') format('truetype'),
       url('../fonts/sukhumvitset-medium-webfont.svg#arabicaregular') format('svg');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Sukhumvit Text';
  src: url('../fonts/sukhumvitset-text-webfont.eot');
  src: url('../fonts/sukhumvitset-text-webfont.eot?#iefix') format('embedded-opentype'),
       url('../fonts/sukhumvitset-text-webfont.woff') format('woff'),
       url('../fonts/sukhumvitset-text-webfont.ttf') format('truetype'),
       url('../fonts/sukhumvitset-text-webfont.svg#arabicaregular') format('svg');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Sukhumvit Thin';
  src: url('../fonts/sukhumvitset-thin-webfont.eot');
  src: url('../fonts/sukhumvitset-thin-webfont.eot?#iefix') format('embedded-opentype'),
       url('../fonts/sukhumvitset-thin-webfont.woff') format('woff'),
       url('../fonts/sukhumvitset-thin-webfont.ttf') format('truetype'),
       url('../fonts/sukhumvitset-thin-webfont.svg#arabicaregular') format('svg');
  font-weight: normal;
  font-style: normal;
}

html {
  height: 100%;
}

body {
	padding-top: 70px;
  padding-bottom: 60px;
  font-size: 16px;
  line-height: 1.2em;
  font-family: 'Sukhumvit Thin';
  min-height: 100%;
}

.product-type-list-wrapper,
.product-list-wrapper {
  overflow: auto;
}

.product-list-wrapper {
  height: 40em;
  margin-top: 2.5em;
}

.product-type-list,
.product-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.product-type-list {
  width: 9999px;
}

.product-type-list li,
.product-list li {
  float: left;
  background: #ccc;
  margin-right: 2px;
}

.product-list li {
  width: 20%;
  height: 8em;
  margin-right: 0;
  border: 1px solid #fff;
  overflow: hidden;
}

.product-type-list li:last-child,
.product-list li:last-child {
  margin-right: 0;
}

.product-type-list li a,
.product-list li a {
  font-family: 'Sukhumvit Medium';
  display: block;
  text-align: center;
  width: 100%;
  height: 100%;
  padding: 1.5em;
  line-height: 1.5em;
  color: #fff;
}

footer {
  font-size: 12px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
}

footer p {
  margin: 0;
  padding: 10px 20px;
}

.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
  padding: 1em 8px;
  position: relative;
}

.order-form th {
  text-align: center;
  font-weight: normal;
  font-family: 'Sukhumvit Bold';
}

.order-form a {
  display: block;
  width: 100%;
  height: 100%;
  margin: -16px -8px;
  padding: 16px 8px;
}

.order-form .name {
  width: 50%;
}

.order-form .deleted {
  color: #f00;
  text-decoration: line-through;
}

.order-form .deleted a {
  color: #f00;
}

.order-form-controls {
  margin-bottom: 16px;
}

.order-form-controls button {
  float: right;
}

.order-form-controls .created {
  text-align: right;
}

.table-bordered {
  border: none;
}

.table-bordered > thead,
.table-bordered > tbody {
  border: 1px solid #ddd;
}

.table-bordered > tfoot > tr > td {
  border: none;
  padding-top: 30px;
}

#id-note {
  height: 8em;
}

#add-product-btn {
  padding: 1em 1.5em;
}

.total-wrapper {
  position: relative;
}

.remove-product-btn-wrapper {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 2em;
  height: 2em;
  display: none;
}

.order-form .remove-product-btn {
  font-size: 2em;
  line-height: 1em;
  color: #f00;
}

.container {
  overflow: hidden;
}

.outstanding-wrapper {
  text-align: right;
  padding: 3px 2px;
}

.outstanding {
  color: #00f;
  font-family: 'Sukhumvit Bold';
}

.outstanding.red {
  color: #f00;
}

input[name=quantity],
input[name=price],
input[name=unit] {
  font-size: 3em;
  height: 2em;
  width: 30%;
  margin: 0 auto;
  text-align: center;
}

.submit-wrapper {
  text-align: right;
}

.quantity-dialog,
.unit-dialog,
.price-dialog,
.quantity-price-dialog {
  text-align: center;
}

.payment-dialog {
  font-size: 1.5em;
  line-height: 1.25em;
  text-align: center;
}

.payment-dialog .outstanding-wrapper {
  text-align: center;
}

.payment-dialog input[name=payment] {
  font-size: 1.5em;
  height: 2em;
  width: 50%;
  margin: 0 auto;
  text-align: center;
}

.main-wrapper {
  min-height: 500px;
}

table.order-list thead > tr > th {
  text-align: center;
}

table.order-list tbody > tr > td {
  vertical-align: middle;
  padding: 15px;
}

table.order-list .created {
  width: 115px;
}

table.order-list .edit {
  font-size: 1.5em;
  text-align: center;
}

.combobox-container input {
  border: 1px solid #ccc;
}

.combobox-container .add-on {
  padding: 6px 5px;
}

.icon-arrow-left,
.icon-arrow-right {
  position: relative;
  top: 1px;
  display: inline-block;
  font-family: 'Glyphicons Halflings';
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-arrow-right::before {
  content:"\e080";
}

.icon-arrow-left::before {
  content:"\e079";
}

.chosen-container {
  display: block;
}

.chosen-container-single .chosen-single {
  height: 32px;
  line-height: 32px;
}

.chosen-container-single .chosen-single div b {
  background-position: 0 6px;
}

.chosen-container-active.chosen-with-drop .chosen-single div b {
  background-position: -18px 6px;
}

.chosen-container-single .chosen-single abbr {
  top: 10px;
}


@media (min-width: 768px) {
  .modal-dialog {
    width: 680px;
  }

  .login-form {
    width: 300px;
    margin: 0 auto;
    padding-top: 8px;
  }

  .order-search-form-wrapper {
    max-width: 158px;
    position: fixed;
  }
}